#ifndef cornerCalibrator_H
#define cornerCalibrator_H

#include <cv.h>
#include <highgui.h>

class CornerCalibrator
{
private:
    int topLeftX;
    int topLeftY;
    int topRightX;
    int topRightY;
    int bottomLeftX;
    int bottomLeftY;
    int bottomRightX;
    int bottomRightY;

    IplImage* calibrationImage;

private:
    void drawTarget(IplImage* img, const int x, const int y, const int radius) const;
    void printText(IplImage* img, const int x, const int y, const char* text) const;
    void getCorners();

public:
    CornerCalibrator(IplImage* img);
    void mouseClickedCorners( int x, int y );
    void getParams (int* tlX, int* tlY, int* trX, int* trY, int* blX, int* blY, int* brX, int* brY) const;
    ~CornerCalibrator();
};

#endif

